package com.manager.bean.view;

import java.io.Serializable;
import java.util.Date;

public class StudentAccessView implements Serializable {
    private Integer id;

    private String name;

    private String phone;

    private String reason;

    private Date getout;

    private Date comeback;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason == null ? null : reason.trim();
    }

    public Date getGetout() {
        return getout;
    }

    public void setGetout(Date getout) {
        this.getout = getout;
    }

    public Date getComeback() {
        return comeback;
    }

    public void setComeback(Date comeback) {
        this.comeback = comeback;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", phone=").append(phone);
        sb.append(", reason=").append(reason);
        sb.append(", getout=").append(getout);
        sb.append(", comeback=").append(comeback);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}